-
Home
-
Leat
-
2.4.9
-
Code
-
Classes
- GiftcardSessionEndpoint
| Total Complexity |
36 |
| Dependencies |
13 |
| Dependents |
1 |
| Total lines |
435 |
| Lines of code |
260 |
| Logical lines of code |
85 |
| Comment lines |
113 |
| Methods |
13 |
| Properties |
3 |
Methods 13
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| add_gift_card() |
A |
39 |
9 |
68 |
| remove_gift_card() |
S |
47 |
4 |
38 |
| register_routes() |
S |
45 |
1 |
59 |
| maybe_init_session() |
S |
62 |
4 |
12 |
| check_permission() |
S |
68 |
4 |
6 |
| check_balance() |
S |
58 |
2 |
17 |
| get_applied_gift_cards() |
S |
60 |
2 |
13 |
| format_gift_card() |
S |
60 |
2 |
13 |
| get_cart_totals() |
S |
61 |
2 |
13 |
| is_store_api_request() |
S |
70 |
2 |
7 |
| update_order_from_request() |
S |
73 |
2 |
5 |
| __construct() |
S |
74 |
1 |
5 |
| init() |
S |
74 |
1 |
4 |